<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('四闲场所二维码')"/>
</head>
<body class="white-bg">
<div>
    <div class="row" style="margin-top: 50px">
        <div class="col-sm-12">
            <div id="qrcode"></div>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript" src="/js/qrcode.js"></script>
<script th:inline="javascript">
    var prefix = ctx + "control/places";
    var ywlsh = [[${places.ywlsh}]];
    var url = window.location.host;
    var iurl = $.common.setURL(prefix + "/qrcodeDetail/" + ywlsh);
    window.onload = function () {
        var qrcode = new QRCode(document.getElementById("qrcode"), {
            text: "http://" + url + iurl,
            width: 300,
            height: 300,
            colorDark: "#111",
            colorLight: "#fff",
            correctLevel: 0 // 二维码结构复杂性 0~3
        });
    }
</script>
</body>
</html>

